package com.iretailer.report.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @Auther: xjw
 * @Date: 2019/8/8 0008 21:14
 * @Description:
 */
@TableName("f_gender_age")
@Data
public class GenderAge {

    @JSONField(name = "Id")
    @TableId(value = "Id", type = IdType.AUTO)
    private Long id;

    @JSONField(name = "PersonId")
    @TableField(value = "PersonId")
    private String personId;

    // 年龄区间，1: [0-18], 2: [19-35], 3: [36-55], 4 56+
    @JSONField(name = "AgeType")
    @TableField(value = "AgeType")
    private String ageType;

    // 1为男性 0 为女性
    @JSONField(name = "Gender")
    @TableField(value = "Gender")
    private Integer gender;

    @JSONField(name = "Date")
    @TableField(value = "Date")
    private LocalDate date;

    @JSONField(name = "DateTime")
    @TableField(value = "DateTime")
    private LocalDateTime dateTime;

    @JSONField(name = "Did")
    @TableField(value = "Did")
    private Long did;

    @JSONField(name = "ImageUrl")
    @TableField(value = "ImageUrl")
    private String imageUrl;

    @JSONField(name = "Image")
    @TableField(exist = false)
    private String image;
}
